

const path = require("path");
module.exports = {
  mode: "development",
  entry: "./src/index.js",
  devtool:false,
  output: {
    path: path.resolve("dist"),
    filename: "main.js",
  },
  module: {
    rules: [
      {
        test: /\.js$/,
        use: {
          loader: "babel-loader",
          options:{
                   plugins:[
                     [
                       path.resolve(__dirname,'doc/4.babel-plugin-import.js'),
                        // "import",
                       {
                         libraryName:'lodash',
                        //  libraryDirectory:""
                       }
                     ]
                   ]
                }
        },
      },
    ],
  },
};